home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / admin / dig-2.0 / dig-2 / dig.2.0 / Makefile < prev    next >
Encoding:
Makefile  |  1990-09-01  |  4.6 KB  |  126 lines

  1. #
  2. # Copyright (c) 1988 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that this notice is preserved and that due credit is given
  7. # to the University of California at Berkeley. The name of the University
  8. # may not be used to endorse or promote products derived from this
  9. # software without specific prior written permission. This software
  10. # is provided ``as is'' without express or implied warranty.
  11. #
  12. #    from @(#)Makefile    5.16 (Berkeley) 3/14/88
  13. #
  14. ####
  15. #### Updated 3/27/89 for 'dig' version 1.0 at University of Southern
  16. #### California Information Sciences Institute (USC-ISI).
  17. ####
  18. #### Modified & distributed with 'dig' version 2.0 from USC-ISI (9/1/90).
  19. ####
  20. ####
  21.  
  22. SRCS=    herror.c res_comp.c res_debug.c res_init.c res_mkquery.c res_query.c \
  23.     res_send.c strcasecmp.c gethostnamadr.c sethostent.c qtime.c
  24. OBJS=    herror.o res_comp.o res_debug.o res_init.o res_mkquery.o res_query.o \
  25.     res_send.o strcasecmp.o gethostnamadr.o sethostent.o qtime.o
  26. DEFS=    -DDEBUG
  27. CFLAGS=    -O ${DEFS}
  28.  
  29. dig: libresolv.a dig.c list.o Makefile options.c
  30.     ${CC} ${CFLAGS} dig.c -L`pwd` -lresolv list.o -o dig
  31.  
  32. dig.g: libresolv.a dig.c list.o Makefile options.c
  33.     ${CC} -g ${DEFS} dig.c -L`pwd` -lresolv list.o -o dig.g
  34.  
  35. libresolv.a: ${OBJS}
  36.     ar cru libresolv.a ${OBJS}
  37.     ranlib libresolv.a
  38.  
  39. .c.o:
  40.     ${CC} ${CFLAGS} -c $*.c
  41.     -ld -x -r $*.o
  42.     mv a.out $*.o
  43.  
  44. dig.local: dig.c list.o options.c
  45.     ${CC} ${CFLAGS} -DRESLOCAL dig.c -lresolv list.o -o dig.local
  46.  
  47. dig.dbx: libresolv.a dig.c list.o Makefile
  48.     ${CC} -g ${DEFS} dig.c -L`pwd` -lresolv list.o -o dig
  49.  
  50. clean: FRC
  51.     rm -f *.o errs a.out core tags
  52.  
  53. depend: FRC
  54.     mkdep -f Makefile.resolv ${CFLAGS} ${SRCS}
  55.  
  56. FRC:
  57.  
  58. # DO NOT DELETE THIS LINE -- mkdep uses it.
  59. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  60.  
  61. herror.c:
  62. herror.o: herror.c /usr/include/sys/types.h 
  63. herror.o: /usr/include/sys/uio.h
  64. res_comp.c:
  65. res_comp.o: res_comp.c hfiles.h /usr/include/sys/types.h
  66. res_comp.o:  /usr/include/stdio.h nameser.h
  67. res_debug.c:
  68. res_debug.o: res_debug.c hfiles.h /usr/include/sys/types.h
  69. res_debug.o:  /usr/include/netinet/in.h
  70. res_debug.o: /usr/include/stdio.h nameser.h resolv.h pflag.h
  71. res_init.c:
  72. res_init.o: res_init.c hfiles.h /usr/include/sys/types.h
  73. res_init.o:  /usr/include/sys/socket.h
  74. res_init.o: /usr/include/netinet/in.h /usr/include/stdio.h nameser.h resolv.h
  75. res_mkquery.c:
  76. res_mkquery.o: res_mkquery.c hfiles.h /usr/include/stdio.h
  77. res_mkquery.o: /usr/include/sys/types.h 
  78. res_mkquery.o: /usr/include/netinet/in.h nameser.h resolv.h
  79. res_query.c:
  80. res_query.o: res_query.c hfiles.h param.h
  81. res_query.o: /usr/include/signal.h /usr/include/sys/types.h
  82. res_query.o:  /usr/include/sys/socket.h
  83. res_query.o: /usr/include/netinet/in.h /usr/include/ctype.h netdb.h
  84. res_query.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/sys/errno.h
  85. res_query.o: /usr/include/strings.h /usr/include/arpa/inet.h nameser.h resolv.h
  86. res_send.c:
  87. res_send.o: res_send.c hfiles.h param.h
  88. res_send.o: /usr/include/signal.h /usr/include/sys/types.h
  89. res_send.o:  /usr/include/sys/socket.h
  90. res_send.o: /usr/include/sys/uio.h /usr/include/netinet/in.h
  91. res_send.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/sys/errno.h
  92. res_send.o: nameser.h resolv.h qtime.h /usr/include/stdio.h
  93. res_send.o: /usr/include/sys/time.h /usr/include/time.h
  94. res_send.o: /usr/include/sys/types.h pflag.h
  95. strcasecmp.c:
  96. strcasecmp.o: strcasecmp.c
  97. gethostnamadr.c:
  98. gethostnamadr.o: gethostnamadr.c hfiles.h param.h
  99. gethostnamadr.o: /usr/include/signal.h /usr/include/sys/types.h
  100. gethostnamadr.o:  /usr/include/sys/socket.h
  101. gethostnamadr.o: /usr/include/netinet/in.h /usr/include/ctype.h netdb.h
  102. gethostnamadr.o: /usr/include/stdio.h /usr/include/errno.h
  103. gethostnamadr.o: /usr/include/sys/errno.h /usr/include/arpa/inet.h nameser.h
  104. gethostnamadr.o: resolv.h
  105. sethostent.c:
  106. sethostent.o: sethostent.c hfiles.h /usr/include/sys/types.h
  107. sethostent.o:  nameser.h /usr/include/netinet/in.h
  108. sethostent.o: resolv.h
  109. qtime.c:
  110. qtime.o: qtime.c qtime.h /usr/include/stdio.h /usr/include/sys/time.h
  111. qtime.o: /usr/include/time.h /usr/include/sys/types.h
  112. qtime.o: 
  113. dig.c:
  114. dig.o: dig.c hfiles.h /usr/include/sys/types.h
  115. dig.o: /usr/include/netinet/in.h /usr/include/stdio.h resolv.h
  116. dig.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h /usr/include/sys/stat.h
  117. dig.o: /usr/include/ctype.h subr.c hfiles.h /usr/include/stdio.h
  118. dig.o: /usr/include/strings.h /usr/include/sys/types.h netdb.h
  119. dig.o: /usr/include/sys/socket.h nameser.h /usr/include/signal.h
  120. dig.o: /usr/include/setjmp.h res.h strcasecmp.c pflag.h qtime.h
  121. dig.o: /usr/include/stdio.h /usr/include/sys/time.h /usr/include/time.h
  122. dig.o: /usr/include/sys/types.h
  123. dig.o:
  124.  
  125. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  126.